# -*- coding: utf-8 -*-

from django.urls import path, re_path


from core.consumers import SystemNotificationConsumer
from apps.sys.consumers import NotificationConsumer
from apps.tools.consumers import ConsoleConsumer
from apps.oms.host.consumers import TerminalConsumer

websocket_urlpatterns = [
    re_path(r"ws/notice/$", SystemNotificationConsumer.as_asgi()),
    re_path(
        r"ws/console/(?P<func_name>[^/]+)/(?P<user_id>[^/]+)/$",
        ConsoleConsumer.as_asgi(),
    ),
    re_path(r"^ws/webssh/$", TerminalConsumer.as_asgi()),
    re_path(r"^ws/notifications/$", NotificationConsumer.as_asgi()),
]
